import request from '@/utils/request'

// 查询库龄
export function stockAgeList(query, pageReq) {
    return request({
        url: '/wms/stockAge/list',
        method: 'post',
        data: query,
        params: pageReq
    })
}
// 新增库龄
export function addStockAge(query, pageReq) {
    return request({
        url: '/wms/stockAge',
        method: 'post',
        data: query,
        params: pageReq
    })
}
// 修改库龄
export function updateStockAge(query, pageReq) {
    return request({
        url: '/wms/stockAge',
        method: 'put',
        data: query,
        params: pageReq
    })
}
// 库龄详情
export function stockAgeById(id) {
    return request({
        url: '/wms/stockAge/' + id,
        method: 'get'
    })
}
// 删除库龄
export function delStockAgeById(ids) {
    return request({
        url: '/wms/stockAge/' + ids,
        method: 'delete'
    })
}
// 导出
export function exportWmStockAgeDetail(query) {
    return request({
      url: '/wms/stockAge/export',
      method: 'get',
      params: query
    })
  }
//   查询库位出租
export function warehouseRent(query, pageReq) {
    return request({
        url: '/wms/warehouseRent/list',
        method: 'post',
        data: query,
        params: pageReq
    })
}
// 新增库位出租
export function addWarehouseRent(query, pageReq) {
    return request({
        url: '/wms/warehouseRent',
        method: 'post',
        data: query,
        params: pageReq
    })
}
// 删除库位出租
export function delWarehouseRent(ids) {
    return request({
        url: '/wms/warehouseRent/' + ids,
        method: 'delete'
    })
}
// 编辑库位出租、
export function updateWarehouseRent(query) {
    return request({
        url: '/wms/warehouseRent',
        method: 'put',
        data: query
    })
}
// 导出库位出租、
export function exportWarehouseRent(query) {
    return request({
      url: '/wms/WarehouseRent/export',
      method: 'get',
      params: query
    })
  }
  